package com.happy3w.cmds.plan.in.task;

import com.happy3w.bean.factory.ConfigBeanHelper;
import com.happy3w.bean.factory.DecodeHelper;
import lombok.Getter;
import lombok.Setter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.io.File;

public class TaskManager {


    @Configuration
    public static class TaskManagerConfiguration {

        @Bean
        public TaskManager taskManager(ConfigBeanHelper configBeanHelper, DecodeHelper decodeHelper) {
            configBeanHelper.initConfigType(AbstractInTask.class.getPackageName(), AbstractInTask.class);
            TaskConfig config = decodeHelper.loadFromFile(new File("config/in-task"), TaskConfig.class);
            return null;
        }
    }

    @Getter
    @Setter
    public static class TaskConfig {

    }
}
